package com.baizhi.controller;

import com.baizhi.dao.DepartmentDao;
import com.baizhi.entity.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("department")
public class DepartmentController {
    @Autowired
    private DepartmentDao departmentDao;
    @RequestMapping("select")
    public List<Department> select(Integer comId){
        return departmentDao.select(comId);
    }
}
